<div class="header hidden-xs">
	<div class="header-line">
		<div class="container">
			<div class="weui-flex-center">
				<div class="weui-flex__item">
					<!--<a href='http://api.hongyanche.com/home#'>首页</a>-->
					<!--<a href="http://api.hongyanche.com/home#"><img style="width: 60px;" src="/_hongyanche/material/logo-5.png" alt=""></a>-->
					<!--<a href="http://api.hongyanche.com/home#mall">重卡汇商城</a>-->
					<!--<a href="http://api.hongyanche.com/home#maintain">维修保养</a>-->
					<!--<a>增值服务</a>-->
					<!--<a href="http://api.hongyanche.com/api/redirect?url=http://uat.chedbao.com/cdb-gas/hongyan/wx">优惠油卡</a>-->
					<!--<a href="/home#forum">询车探道•论坛</a>-->
					<!--<a href="/home#maintain_network">全国网点查询</a>-->
				</div>
				<div class="weui-flex__item bc-info" style="padding: 10px" cache="user" data-port="http://api.hongyanche.com/user/info" align="right" data-index="1">
					<!--<a href="/business">商户中心</a>&nbsp;-->
					<user_name info="d" class="" style="opacity: 1;">
						<a href="/home#my"><headimgurl info="d" class="" style="opacity: 1;"><headimgurl info="i" style="opacity: 1;"><img src="http://wx.qlogo.cn/mmopen/ZkIIGzGfZUCcYRHkjgLdF5ibia3n8RWTNib3RIrDPvM1rFY5zibkT4Jb3jwD9MjvJ8yXw5Fa07ALKgWr6YPev98xUkj0xWwvcibSy/0" style="height: 20px; width: 20px; border-radius: 50%; transform-origin: 0px 0px 0px; opacity: 1; transform: scale(1, 1);"></headimgurl></headimgurl>&nbsp;<user_name info="1" style="opacity: 1;">夏浩文</user_name></a>
						<!--<a href="http://api.hongyanche.com/home?order=1#my">我的订单</a>-->
						<!--<a href="http://api.hongyanche.com/home?collect=1#my">我的收藏</a>-->
						<!--<a href="http://api.hongyanche.com/home#my">消息通知(<span id="messagecount" style="color: rgb(255, 165, 0);">13</span>)</a>-->
						<a id="logout2">退出登录</a>
					</user_name>
					<user_name info="none" class="hidden" style="display: inline; opacity: 1;"><a href="/home#login">登录</a></user_name>
				</div>
				<!--<div onclick="location.href='http://api.hongyanche.com/home#mall_cart' " class="pointer header-cart mall-cart-amount"><i class="i i-cart"></i> 购物车 (<span id="cartamount" style="color: rgb(255, 165, 0);">1</span>)</div>-->
			</div>
		</div>
	</div>
	<div class="container">
		<div class="weui-flex" style="align-items: center;">
			<!--<div style="padding:10px 0">-->
				<!--<a href="/"><img style="" src="//api.hongyanche.com/_hongyanche/material/logo-line.jpg"><br>&lt;!&ndash;<p mute>自助式重卡综合平台</p>&ndash;&gt;</a>-->
			<!--</div>-->
			<!--<div class="weui-flex__item" style="text-align: right;font-size: 18px; color:black;" id="heading">-->
				<!-- <a href='/'>红岩车 hongyanche.com</a> -->
				<!-- <a href='#login'>请登录</a> -->
				<!--<a href="/home#maintain_network" style="color:black;">全国网点查询</a>&nbsp;&nbsp;&nbsp;-->
				<!--<a href="http://api.hongyanche.com/home#mall" style="color:black;">最新车型</a>&nbsp;&nbsp;&nbsp;-->
				<!--&lt;!&ndash;<a style="color:black;">找车</a>&nbsp;&nbsp;&nbsp;-->
                <!--<a style="color:black;">C2B定制</a>&nbsp;&nbsp;&nbsp;&ndash;&gt;-->
				<!--<a href="http://api.hongyanche.com/home#mall" style="color:black;">配件</a>&nbsp;&nbsp;&nbsp;-->
				<!--<a href="http://api.hongyanche.com/home#mall" style="color:black;">二手车</a>&nbsp;&nbsp;&nbsp;-->
				<!--<a href="/home#forum" style="color:black;">询车探道•论坛</a>&nbsp;&nbsp;&nbsp;-->
				<!--&lt;!&ndash;<a>论坛</a>&ndash;&gt;-->
				<!--<input placeholder="刹车失灵怎么办？" style="font-size: 18px;border:1px solid #ccc;padding:3px;">-->
				<!--<i class="i i-search"></i>-->
			</div>
		</div>
	</div>
</div>
<script>
    // if(WEIXIN.is()){$("#logout").remove();return}
    $(document).on('click', '#logout2', function(event) {
        if(!confirm("确认退出登录？")) return;
        event.preventDefault();
        $.ajax({
            url: 'http://api.hongyanche.com/logout',
            xhrFields:{
                withCredentials:true
            },
            success:function(ret){
                if(!ret.state) retur
                // TOAST.success("成功安全退出",1)
//                    $(document).trigger("bc-logout-success");
//                    $(document).trigger("logout-success");
                location.reload();
            }
        })
    });

    $.ajax({
        url:'http://api.hongyanche.com/message/getlist',
        data:{
            count:1
        },
        xhrFields:{
            withCredentials:true
        },
        success:function (e) {
            if(e.state){
                if(e.data.count==0){
                    $('#messagecount').css('color','white')
                }else {
                    $('#messagecount').html(e.data.count)
                    $('#messagecount').css('color', '#FFA500')
                }
            }
        }
    })
    $.ajax({
        url:'http://api.hongyanche.com/cart/amount',
        xhrFields:{
            withCredentials:true
        },
        success:function (e) {
            if(e.state){
                if(e.data.amount==0){
                    $('#cartamount').html(e.data.amount)
                    $('#cartamount').css('color','white')
                }else {
                    $('#cartamount').html(e.data.amount)
                    $('#cartamount').css('color', '#FFA500')
                }
            }

        }
    })
</script>